<!DOCTYPE html>
<html class="pixel-ratio-3 retina android android-5 android-5-1-1">
<head>
    <title>方案统计</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="description" content="">

    <link rel="stylesheet" href="../../lib/weui.min.css">
    <link rel="stylesheet" href="../../css/jquery-weui.css">
    <link rel="stylesheet" href="../../css/home.css">
    <link rel="stylesheet" href="../../plugins/fontaw/css/font-awesome.css">
    <style>
        .weui-navbar__item.weui-bar__item--on {
            color: darkred;
            font-weight: bold;
        }

        .weui-navbar__item {
            position: initial
        }

        .inquiry-list {
            padding: 10px;
        }

        .inquiry-block {
            border: #d8d6d3 1px solid;
            border-radius: 5px;
            margin-bottom: 10px;
            padding-bottom: 0.5rem;
        }

        .block-head {
            background-color: #f1bb62;
            color: white;
        }

        .weui-cell {
            padding: 5px
        }

        .block-body {
            min-height: 40px;
            font-size: 0.6rem
        }

        .view-link {
            float: right;
            border: white solid 1px;
            border-radius: 6px;
            vertical-align: middle;
            padding: 0px 5px;
            font-size: 0.6rem
        }

        .block-body p {
            display: inline-block;
            padding: 0.2rem 0.3rem;
            border-bottom: lightgray dashed 1px;
            width: 95%
        }

        .c-title {
            width: 80px;
            font-weight: bold;
            text-align: justify;
        }

        .block-body span {
            font-weight: bold;
            width: 3.5rem;
            display: -webkit-inline-box;
        }

        .block-center {
            position: relative;
            height: 100%
        }

        .block-center .center-box {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
        }

        .center-box p {
            text-align: center;
            color: lightgray
        }
    </style>
</head>
<body ontouchstart>
<div class="weui-tab">
    <div class="weui-navbar">
        <a class="weui-navbar__item weui-bar__item--on" href="#tab1" onclick="tab1Click()">
            全部方案
        </a>
        <a class="weui-navbar__item" href="#tab2" onclick="tab2Click()">
            配送中
        </a>
    </div>
    <div class="weui-tab__bd">
        <div id="tab1" class="weui-tab__bd-item weui-tab__bd-item--active">

        </div>
        <div id="tab2" class="weui-tab__bd-item">

        </div>
    </div>
</div>

<script src="/lib/jquery-2.1.4.js"></script>
<script src="/lib/fastclick.js"></script>
<script src="/js/jquery-weui.js"></script>
<script src="/js/home.js"></script>
<script>
    $(function () {
        var tab = window.location.hash;
        $("a[href='" + tab + "']").trigger("click");
    });
    function tab1Click() {
        $.ajax({
            url: '/prescription/selectAllPrescriptions',
            type: 'GET',
            success: function (data) {
                $('#tab1').html(data);

            }
        });
    }
    function tab2Click() {
        $.ajax({
            url: '/prescription/selectAllPrescriptions?state=3',
            type: 'GET',
            success: function (data) {
                $('#tab2').html(data);

            }
        });
    }
</script>
</body>
</html>